-- GENERATED SPELL FOR [Saltstone Gazer] --


function spell0_4150(pUnit, Event) --@Crystal Gaze,n/a--
pUnit:FullCastSpellOnTarget(3635,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4150', 8000, 1)
end

function Sorts_4150(pUnit, Event)
local choix_sorts_4150 = math.random(0, 0)
if choix_sorts_4150 == 0 then
pUnit:RegisterEvent('spell0_4150', 1, 1)
end
end

function mob4150_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4150', math.random(1500, 3000), 1)
end

function mob4150_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4150_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4150_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4150, 1, 'mob4150_Action')
RegisterUnitEvent(4150, 2, 'mob4150_Leave')
RegisterUnitEvent(4150, 3, 'mob4150_Kill')
RegisterUnitEvent(4150, 4, 'mob4150_Die')
